﻿using System.Web;
using System.Web.Optimization;

namespace XBJCYGC
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            /**首页的脚本和样式。只引用jquery 和easyui就行了。 */
            bundles.Add(new ScriptBundle("~/indexJS").Include(
                              "~/Scripts/jquery-3.1.0.min.js",
                             "~/Scripts/zTree3.5.21/js/jquery.ztree.core.min.js",
                            "~/Scripts/easyui1.5/jquery.easyui.min.js"
                        ));
            bundles.Add(new StyleBundle("~/indexCss").Include(
                            "~/Scripts/zTree3.5.21/css/zTreeStyle/zTreeStyle.css",
                          "~/Scripts/easyui1.5/themes/bootstrap/easyui.css"
                          ));
            /***  通用的页面的脚本和样式  包含常用组件*/
            bundles.Add(new ScriptBundle("~/defaultJS").Include(
                            "~/Scripts/jquery-3.1.0.min.js",
                            "~/Scripts/bootstrap3.3.7/js/bootstrap.js",
                            "~/Scripts/bootstrap-submenu/js/bootstrap-submenu.js",
                            "~/Scripts/bootstrap-datepicker-master/dist/js/bootstrap-datepicker.js",
                            "~/Scripts/bootstrap-datepicker-master/dist/locales/bootstrap-datepicker.zh-CN.min.js",
                            "~/Scripts/zTree3.5.21/js/jquery.ztree.core.min.js",
                            "~/Scripts/screenfull/dist/screenfull.min.js",
                            "~/Scripts/lodash/lodash.js",
                            "~/Scripts/layer/layer.js",
                            "~/Scripts/toastr.2.1.3/toastr.min.js",
                             "~/Scripts/timeago/dist/timeago.js",
                            "~/Scripts/autoJS/auto.js",
                            "~/AppTS/util.js"
                        ));

            bundles.Add(new StyleBundle("~/defaultCss").Include(
                          "~/Scripts/bootstrap3.3.7/css/bootstrap.css",
                          "~/Scripts/bootstrap-submenu/dist/css/bootstrap-submenu.css",
                          "~/Scripts/bootstrap-datepicker-master/dist/css/bootstrap-datepicker.css",
                          "~/Scripts/zTree3.5.21/css/zTreeStyle/zTreeStyle.css", 
                          "~/Scripts/toastr.2.1.3/toastr.css",
                          "~/Scripts/autoJS/auto.css"
                          ));

        }
    }
}
